package com.gugee.ins.common.dal.service.mark.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gugee.ins.common.dal.mapper.mark.InsRkBloggerFgMonthExtMapper;
import com.gugee.ins.common.dal.service.mark.InsRkBloggerFgMonthDao;
import com.gugee.ins.common.model.mysql.mark.InsRkBloggerFgMonth;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * insBlogger dao
 * @author Huangxin
 */
@Slf4j
@Service
public class InsRkBloggerFgMonthDaoImpl extends ServiceImpl<InsRkBloggerFgMonthExtMapper, InsRkBloggerFgMonth> implements InsRkBloggerFgMonthDao {
    /**
     * 月榜
     * @param lastDayOfRankMonth
     * @param rankMonth
     * @param lastRankMonth
     * @param category
     */
    @Override
    public void insertRkBloggerFgMonth(int lastDayOfRankMonth,int rankMonth,int lastRankMonth,String category){
        long now = System.currentTimeMillis() / 1000;
        baseMapper.insertRkBloggerFgMonth(lastDayOfRankMonth,rankMonth,lastRankMonth,category,now);
    }
}
